<?php
/**
 * This file is form http://findcat.cn
 *
 * @author   犯二青年
 * @link     http://findcat.cn
 * @email    1476982312@qq.com
 */
namespace App\Admin\Controllers;

use Dcat\Admin\Layout\Row;
use Dcat\Admin\Layout\Column;
use Dcat\Admin\Layout\Content;
use App\Admin\Widgets\Dashboard;
use App\Http\Controllers\Controller;

class HomeController extends Controller
{
    /**
     * Dashboard页面.
     *
     * @return Content
     */
    public function index(Content $content)
    {
        return $content
            ->header('Dashboard')
            ->description('基于Laravel开发的爬虫小工具')
            ->body(function (Row $row) {
                $row->column(12, function (Column $column) {
                    $column->row(Dashboard::title());
                });
            });
    }
}
